If you are just looking to find the JIRA project name, you can do so using the List log entries for an incident endpoint. Underneath "type": "trigger_log_entry"
, you will find "channel": { "issue": ...}
, which contains the URL and the name of the JIRA project.
Here is a sample response:
{
"id": "xxxxxxxxxxxxxxxxxxxxxxEN0M",
"type": "trigger_log_entry",
"summary": "Triggered through the website",
"self": "https://api.pagerduty.com/log_entries/xxxxxxxxxxxxxxxxxxxxxxEN0M",
"html_url": "https://xxxxxxxxxxxxxxxxxxxxxx.pagerduty.com/incidents/PF6UKT7/log_entries/xxxxxxxxxxxxxxxxxxxxxxEN0M",
"created_at": "2018-05-31T18:20:33Z",
"agent": null,
"channel": {
"type": "jira",
"summary": "test",
"user": {
"name": "PagerDuty Support"
},
"issue": {
"url": "http://subdomain.atlassian.com/browse/PROJ-7",
"key": "PROJ-7"
}
}
Using that project name, you may be able to get this information from Atlassian’s REST API; for help with this I would recommend reaching out to their support team.